package com.bill.gaty.mfidelity.dto;

 
import android.annotation.SuppressLint;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

@SuppressLint("SimpleDateFormat")
public class SauvegardeRestaurationResponse  extends ResponseAbstract {

	/**
	 * 
	 */
	private static final long serialVersionUID = 0xBBE;
 
	private String responseData;
 
 
	public boolean isOk(){return getResponseCode()==200;}
	 
	 
	 
	public String getResponseData() {
		return responseData;
	}
	public void setResponseData(String responseData) {
		this.responseData = responseData;
	}
	 
	 
 
	public Date getTreatmentDateToDate() {
		SimpleDateFormat format=new SimpleDateFormat("Y-m-d H:i:s");
		try {
			return format.parse(getTreatmentDate());
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			
			e.printStackTrace();
			return null;
		}
	}
	 
	 
	 
	@Override
	public String toString() {
		return "SauvegardeRestaurationResponse [responseData=" + responseData
				+ ", getResponseCode()=" + getResponseCode()
				+ ", getResponseMessage()=" + getResponseMessage()
				+ ", getTreatmentDate()=" + getTreatmentDate()
				+ ", getIpFrom()=" + getIpFrom() + ", getServerIp()="
				+ getServerIp() + "]";
	}



	public SauvegardeRestaurationResponse() {
		super();
		// TODO Auto-generated constructor stub
	}

}
